package com.pcl;

/**
 *
 * 4.扩展：序列化、枚举（code，name）
 *
 * @author 潘春龙
 * @title: ProjectFour
 * @projectName learn-git-testing
 * @description: TODO
 * @date 2022/2/17
 */
public enum ProjectFour {

  /**
   *
   * 验证码验证成功
   * */
  SERVER_DO_ERROR("20000","验证成功"),

  /**
   *
   * 从ftp下载文件失败
   * */
  SERVER_FTP_DOWN_ERROR("10000","从ftp下载文件失败"),

  /**
   * 上传阿里云失败
   * */
  SERVER_ALIYUN_UPLOAD_ERROR("40001","上传阿里云失败"),

  /**
   * 图片错误
   * */
  SERVER_IMG_ERROR("40000","图片错误"),

  /**
   * 数据库错误
   * */
  SERVER_DB_ERROR ("30000","数据库错误"),

  /**
   * 其他异常
   * */
  SERVER_OTHER_ERROR("50001","其他异常");
  private String code;
  private String name;

  ProjectFour(String code, String name) {
    this.code = code;
    this.name = name;
  }

  public String getCode() {
    return code;
  }

  public String getName() {
    return name;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public void setName(String name) {
    this.name = name;
  }
}
